package ru.silviasaint.fridge.server.bean;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable
public class Component implements Serializable{
    @DatabaseField(canBeNull = false, foreign = true)
	private Product product;
	@DatabaseField(canBeNull = false)
	private Weight weight;
	@DatabaseField(canBeNull = false)
	private Double count;
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public Weight getWeight() {
		return weight;
	}
	public void setWeight(Weight weight) {
		this.weight = weight;
	}
	public Double getCount() {
		return count;
	}
	public void setCount(Double count) {
		this.count = count;
	}
}
